package com.tqjc.system.core.gate.asyn;

import com.tqjc.system.core.gate.constants.GateConstant;
import com.tqjc.system.system.dao.SysGateRecordDao;
import com.tqjc.system.system.entity.SysGateRecordEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 86195
 * @version 1.0
 * @description TODO
 * @date 2023/9/21 15:55
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CarPhotoThread implements Runnable{

    private SysGateRecordDao sysGateRecordDao;

    private SysGateRecordEntity sysGateRecordEntity;


    @Override
    public void run() {
        //todo 记录表数据请求MES数据，获取物料信息   获取失败则不打开道闸

        sysGateRecordDao.insert(sysGateRecordEntity);
    }
}
